class Wall < ActiveRecord::Base
  has_many :chains

  def to_s
    self.number.to_s + " " + self.name
  end  

  def <=>(x)
    self.number <=> x.number   
  end
  
  def to_link
    "<a href=\"/walls/#{self.id}\">#{self.name}</a>"
  end
end
